package mwn.droidbus.ui;

import java.util.ArrayList;

import android.graphics.drawable.Drawable;

import com.google.android.maps.ItemizedOverlay;
import com.google.android.maps.OverlayItem;

public class DroidOverlay extends ItemizedOverlay<OverlayItem> {

	ArrayList<OverlayItem> items = null;

	public DroidOverlay(Drawable defaultMarker) {
		super(defaultMarker);
		items = new ArrayList<OverlayItem>();
	}

	public DroidOverlay(Drawable defaultMarker, ArrayList<OverlayItem> items) {
		super(defaultMarker);
		this.items = items;
	}

	@Override
	protected OverlayItem createItem(int i) {
		return (items.get(i));
	}

	@Override
	public int size() {
		return items.size();
	}

	@Override
	public boolean onTap(int x) {
		return true;
	}
}
